class UrlMappings {

	static mappings = {
		"/$controller/$action?/$id?"{
			constraints {
				// apply constraints here
			}
		}
		"/picture/$object?_$type?_$id?.jpg"{
			controller = "picture"
			action = "image"
			constraints {
				// apply constraints here
			}
		}
		"/register"{
			controller = "user"
			action = "create"
		}
		
		"/enter"{
			controller = "user"
			action = "create"
		}
		"/"(view:"/index")
		"500"(view:'/error')
	}
}
